﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}
@section css {
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <a href="../CheckForm/MCheckMenu" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title" style="color:white;">我的场所</h1>
</header>
<div class="mui-content" ng-cloak ng-controller="PlaceSafetyController" ng-init="SearchModel={};">
    <div class="mui-indexed-list-search mui-input-row mui-search">
        <input type="search" placeholder="搜索场所" ng-model="SearchModel.PlaceName" ng-change="GetMyPlaceList(SearchModel);"/>
    </div>
    <div ng-cloak class="mui-scroll">
        <ul ng-cloak class="mui-table-view mui-table-view-chevron" ng-init=" GetMyPlaceList();">
            <li class="mui-table-view-cell mui-collapse" ng-show="PlacePageList.length==0">暂未关联任何场所</li>
            <li ng-cloak ng-repeat="x in PlacePageList" class="mui-table-view-cell mui-collapse">
                <a class="mui-navigate-right" href="#">
                    {{x.ParkName}}<span class="mui-badge mui-badge-primary mui-badge-inverted">{{x.PlaceList.length}}</span>
                </a>
                <ul class="mui-table-view mui-table-view-chevron">
                    <li  ng-repeat="y in x.PlaceList" class="mui-table-view-cell">
                        <a class="mui-navigate-right" href="../PlaceSafety/MPlaceCheckAdd?PlaceId={{y.id}}&RoomId={{y.RoomId}}&PlaceName={{y.PlaceName}} ">
                           <div> <span class="mui-badge mui-badge-primary">{{$index+1}}</span> {{y.PlaceName}}</div>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
        <div style="margin-bottom:50px;">
        </div>
    </div>
</div>

@section js{
    <script src="~/Assets/js/pg/PlaceSafety.js"></script>
    <script>
      
    </script>
}
